package com.linkq.ipinyin.model;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author wangpeng
 * @since 2025-06-23
 **/

// @Data
// @TableName("user_subscriptions")
public class UserSubscription {
    private Integer id;
    private Integer userId;
    private String originalTransactionId;
    private String productId;
    private String transactionId;
    private Date purchaseDate;
    private Date expiresDate;
    private Date cancelDate;
    private Boolean autoRenewStatus;
    private Boolean isTrial;
    private String environment;
    private String latestReceipt;
    private Integer status; // 0:未订阅 1:有效 2:已取消 3:宽限期
    private Date createTime;
    private Date updateTime;
}
